Xbasic

SYS_ID_POSITION_GET Function

Syntax

sys_id_position_get(Window_Name)

Arguments

Location_String

"Taskbar", "Desktop", coordinates in inches

Window_Name

The name of the window as reported by SYS_ID_ENUM()or seen on the window's title bar.

Flags

Character.

Description

SYS_ID_POSITION_GET() returns a character string that contains the location of Window_Name.

Example

The following example assumes that Notepad is open and the name of the window (as seen on the title bar) is "Untitled - Notepad".

sys_id_show("Untitled - Notepad")
sys_id_minimize("Untitled - Notepad")
sys_id_position_get("Untitled - Notepad") -> "Taskbar"
sys_id_maximize("Untitled - Notepad")
sys_id_position_get("Untitled - Notepad") -> "Desktop"
sys_id_restore("Untitled - Notepad") -> Must use sys_id_restore() after sys_id_maximize() to remove the window from the "Desktop"
sys_id_position_get("Untitled - Notepad") -> "9.031250x3.031250" -> New left and top coordinates of the window in inches

Limitations

Desktop applications only.

See Also